<tr id="<%= topic.dom_id%>">
  <td class="">
    <%= link_to h(topic.title), forum_topic_path(@forum, topic) %>

  </td>
  
  <td class="posts">
    <%= topic.posts.count %>
  </td>

  <td class="last_post">
    <%= post_info topic.last_post %>
  </td>
  
  <%- if logged_in? %>
  <td id="<%= topic.dom_id%>_controls" class="controls">
    <%= link_to_out('Edit', edit_forum_topic_path(@forum,topic), {:title => "Editing topic #{topic.title}",
                                                         :id => "#{topic.dom_id}_edit_link"}, {:height => 100}) %> : 
    <%= link_to_remote 'Destroy', {:url => forum_topic_url(topic.forum, topic), :confirm => 'Are you sure?', 
                                  :method => :delete}, {:class=> "destroy", :id => "#{topic.dom_id}_destroy_link"} %>
                                                       

  </td>
  <% end %>
</tr>